package cc.lucien.array;

public class Test {
    public static void main(String[] args) {
        Array<String> arr = new Array<String>();
        for (int i = 0; i < 10; i++)
            arr.addLast(Integer.toString(i));
        System.out.println(arr);

        arr.add(2, "101");
        System.out.println(arr);

        arr.addFirst("abc");
        System.out.println(arr);

        arr.removeElement("4");
        System.out.println(arr);

        arr.removeLast();
        System.out.println(arr);
    }
}
